﻿#region Imports

using System.Configuration;
using N2.Configuration;

#endregion

namespace AWS.N2CMS.Tags
{
    public class TagsConfiguration : ConfigurationSectionBase
    {
        /// <summary>
        ///     Makes all pages in n2 taggable except ones that are specfically decorated with the NotTaggable attribute.
        /// </summary>
        [ConfigurationProperty("allPagesTaggable", DefaultValue = "false")]
        public bool AllPagesTaggable
        {
            get { return (bool) base["allPagesTaggable"]; }
            set { base["allPagesTaggable"] = value; }
        }

        /// <summary>Add or remove item definitions. This is most commonly used to prevent unwanted item definitions appearing.</summary>
        [ConfigurationProperty("definitions")]
        public TagDefinitionCollection Definitions
        {
            get { return (TagDefinitionCollection)base["definitions"]; }
            set { base["definitions"] = value; }
        }
    }
}